package com.fzkjjt.nacos.controller;

import com.alibaba.fastjson.JSON;
import com.fzkjjt.nacos.properties.OrderProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: optms-nacos
 * @description:
 * @author: FangZhen
 * @create: 2020-08-12 15:40
 **/
@RestController
@RequestMapping("/config")
public class ConfigController {

    @Autowired
    OrderProperties orderProperties;

    @RequestMapping("/get")
    public String get() {
        return JSON.toJSONString(orderProperties);
    }

}
